package controller

import "github.com/gin-gonic/gin"

// 分模块路由器
func ZRouterInit(r *gin.Engine) {
	zRouter := r.Group("/controller")
	{
		zRouter.GET("/index", IndexController{}.Index)
		zRouter.GET("/user", UserController{}.Index)
		zRouter.GET("/user/get/:userId", UserController{}.Get)
		zRouter.POST("/user/add", UserController{}.Add)
		zRouter.POST("/user/update", UserController{}.Update)
	}

}
